package com.qyhl.school.school.reporter.clue;


import com.qyhl.webtv.commonlib.entity.UpTokenBean;

public class SchoolReportCluePresenter implements SchoolReportClueContact.SchoolReportCluePresenter {
    private SchoolReportClueContact.SchoolReportClueView mView;
    private SchoolReportClueModel mModel;

    public SchoolReportCluePresenter(SchoolReportClueContact.SchoolReportClueView mView) {
        this.mView = mView;
        this.mModel = new SchoolReportClueModel(this);
    }

    @Override
    public void postClue(String username, String title, String content, String address, String phoneNum, double lng, double lat, String image) {
        mModel.postClue(username, title, content, address, phoneNum, lng, lat, image);
    }

    @Override
    public void getToken(boolean isUpload) {
        mModel.getToken(isUpload);
    }

    @Override
    public void postResult(boolean isSuccess, String msg) {
        mView.postResult(isSuccess, msg);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data, isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
        mView.getTokenError(isUpload);
    }
}
